﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="M_Default" %>

<!DOCTYPE html>
<html>
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>    <meta http-equiv="Cache-control" content="max-age=1700" />    <meta name="viewport" content="width=device-width; initial-scale=1.3;  minimum-scale=1.0; maximum-scale=2.0"/>    <meta name="MobileOptimized" content="240"/>    <meta name="format-detection" content="telephone=no" />
    <title>中大e家新闻中心</title>
    <link href="../templete/CSS/m.css" rel="Stylesheet" type="text/css" />
</head>
<body>
    <form id="form_m_index" runat="server">
    <header>
        <h3>中大e家新闻中心</h3>
        <nav>
        <asp:Repeater ID="Repeater_Nav" runat="server">
            <ItemTemplate>
            <a href="#"><%# DataBinder.Eval(Container.DataItem, "ShortName")%></a>
            </ItemTemplate>
        </asp:Repeater>
        </nav>
    </header>
    <section>
        <h3>最新新闻</h3>
        <ul>
        <asp:Repeater ID="Repeater_LatestNews" runat="server">
            <ItemTemplate>
            <li>[<%# DataBinder.Eval(Container.DataItem, "SCollege")%>]<a href='news.aspx?id=<%# DataBinder.Eval(Container.DataItem, "newsid")%>'><%# DataBinder.Eval(Container.DataItem, "Title").ToString().Length<20?DataBinder.Eval(Container.DataItem, "Title"):DataBinder.Eval(Container.DataItem, "Title").ToString().Substring(0,20) %></a></li>
            </ItemTemplate>
        </asp:Repeater>
        </ul>
    </section>
    <section>
        <h3>最热新闻</h3>
        <ul>
        <asp:Repeater ID="Repeater_HotNews" runat="server">
            <ItemTemplate>
            <li>[<%# DataBinder.Eval(Container.DataItem, "ShortName")%>]<a href='news.aspx?id=<%# DataBinder.Eval(Container.DataItem, "newsid")%>'><%# DataBinder.Eval(Container.DataItem, "Title").ToString().Length<20?DataBinder.Eval(Container.DataItem, "Title"):DataBinder.Eval(Container.DataItem, "Title").ToString().Substring(0,20) %></a></li>
            </ItemTemplate>
        </asp:Repeater>
        </ul>
    </section>
    <footer>
        &copy; eSYSU.COM <asp:Label ID="l_Time" runat="server"></asp:Label>
    </footer>
    </form>
</body>
</html>
